#ifndef MULTI_WIDGET_COMBOBOX_H
#define MULTI_WIDGET_COMBOBOX_H

#include <QComboBox>
#include <QVariant>

class QListWidget;
class MultiWdgComboBox : public QComboBox
{
    Q_OBJECT

public:
    using QComboBox::QComboBox;
    MultiWdgComboBox(QWidget* parent = nullptr);
	void addItem(const QString &text, const QVariant &userData /* = QVariant() */);

	void setData(const QVariant& data);

	QVariant data() const;

protected:
	void paintEvent(QPaintEvent* e) override;

private:
	QListWidget* m_view_ptr{ nullptr };

	QString m_text{ QString() };
};

#endif // MULTI_WIDGET_COMBOBOX_H
